import type { AxiosRequestConfig } from 'axios';

export type RequestContentType = 'JSON' | 'FORMDATA' | 'WWWFORM';
export interface IResponse<T = any> {
    code: number;
    data?: T;
    message?: string;
}

export interface IRequestOptions extends AxiosRequestConfig {
    isShowResponseMessage?: boolean;
    hideError?: boolean;
    returnAllResponse?: boolean;
    isShowLoading?: boolean;
    contentType?: RequestContentType;
    requestType?: 'POST' | 'DELETE' | 'PUT';
}
